Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Functions
Manipulating Items in Dialog and Alert Boxes /


MoveDialogItem

NEW WITH THE APPEARANCE MANAGER

Moves a dialog item to a specified location in a window.

pascal OSErr MoveDialogItem (
                     DialogPtr inDialog,
                     SInt16 inItemNo,
                     SInt16 inHoriz,
                     SInt16 inVert);
inDialog
A pointer to a dialog structure.
inItemNo
A signed 16-bit integer representing the number of the dialog item within the item list.
inHoriz
A signed 16-bit integer representing the horizontal coordinate to which the dialog item should be moved.
inVert
A signed 16-bit integer representing the vertical coordinate to which the dialog item should be moved.
function result
A result code; see "Result Codes".
DISCUSSION
The MoveDialogItem function moves a dialog item to a specified location in a window. MoveDialogItem ensures that if the item is a control, the control rectangle and the dialog item rectangle (maintained by the Dialog Manager) are always the same.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998